import request from '@/config/request'
import { stationApi } from './api'
// 根据电站id的查询电站详情
export const getStationDetail = (data = {}, config = {}) => {
  return request({
    url: `${stationApi}/details`,
    method: 'post',
    data,
    ...config
  })
}
// 根据电站id获取电价
export const getElectrovalenceInfo = (data = {}, config = {}) => {
  return request({
    url: `${stationApi}/electricity/price/detail`,
    method: 'post',
    data,
    ...config
  })
}

// 根据电站id调整电价
export const updateElectrovalenceInfo = (data = {}, config = {}) => {
  return request({
    url: `${stationApi}/electricity/price/adjust`,
    method: 'post',
    data,
    ...config
  })
}

// 家庭下的电站列表
export const getHomeStationList = (data = {}, config = {}) => {
  return request({
    url: `/api-hea-user/home/home/station/list`,
    method: 'post',
    data,
    ...config
  })
}

// 用户下的电站列表
export const getUserStationList = (data = {}, config = {}) => {
  return request({
    url: `/api-hea-user/home/user/station/list`,
    method: 'post',
    data,
    ...config
  })
}
